package com.example.springbook.demos.web.book.model;

import lombok.Data;

/**
 * @author Q
 * @create 2025-06-15-15:00
 */
@Data
public class RequestPage {
    private Integer currentPage=1;
    private Integer pageSize=10;

    public Integer getOffset(){
        return (currentPage-1) * pageSize;
    }
}
